package com.example.customfonts;

import android.app.Activity;
import android.graphics.Typeface;
import android.os.Bundle;
import android.widget.TextView;

public class MainActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        //Default Font-English Language
        TextView defaultText = (TextView)findViewById(R.id.text0);
        defaultText.setText("Hello");
        
        //Custom Font-English Language
        Typeface font1 = Typeface.createFromAsset(getAssets(), "fonts/catr.ttf");
        TextView customText1 = (TextView)findViewById(R.id.text1);
        customText1.setTypeface(font1);
        customText1.setTextSize(50.f);
        customText1.setText("Hello");
        
        //Custom Font - Myanmar Language
        Typeface font2 = Typeface.createFromAsset(getAssets(), "fonts/zg8.ttf");
        TextView customText2 = (TextView)findViewById(R.id.text2);
        customText2.setTypeface(font2);
        customText2.setTextSize(30.f);
        customText2.setText("မဂၤလာပါ");
        
      //Custom Font - Japanese Language
        Typeface font3 = Typeface.createFromAsset(getAssets(), "fonts/epmgobld.ttf");
        TextView customText3 = (TextView)findViewById(R.id.text3);
        customText3.setTypeface(font3);
        customText3.setTextSize(30.f);
        customText3.setText("こんにちは");
       
        
    }
}
